package cn.opopopo.design_pattern_learn.行为型.state;

// 弱光状态
class LowState implements LightState {
    @Override
    public void pressSwitch(LightContext context) {
        System.out.println("灯变亮了（强光）");
        context.setState(new HighState()); // 切换到强光
    }
}
